package com.yl.order.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;

/**
 * create by cjx on 2024/6/25
 * desc: mqtt消息历史
 */
@Entity
public class MqttHistoryEntity implements Serializable {
    @Transient
    public static final long serialVersionUID = -1L;
    @Id(autoincrement = true)
    private Long id;  //数据库自动增长id

    public String message;
    public String topic;
    public long mqttId;
    public long timestamp;
    @Generated(hash = 959991657)
    public MqttHistoryEntity(Long id, String message, String topic, long mqttId,
                             long timestamp) {
        this.id = id;
        this.message = message;
        this.topic = topic;
        this.mqttId = mqttId;
        this.timestamp = timestamp;
    }
    @Generated(hash = 843831051)
    public MqttHistoryEntity() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getMessage() {
        return this.message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public String getTopic() {
        return this.topic;
    }
    public void setTopic(String topic) {
        this.topic = topic;
    }
    public long getMqttId() {
        return this.mqttId;
    }
    public void setMqttId(long mqttId) {
        this.mqttId = mqttId;
    }
    public long getTimestamp() {
        return this.timestamp;
    }
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
   
}
